﻿using System;
using System.Collections;
using System.Collections.Generic;
using DBA.Common;

namespace DBA.Model
{
    /// <summary>
    ///功能描述    :    
    ///开发者      :    
    ///建立时间    :    2012-8-27 7:24:34
    ///修订描述    :    
    ///进度描述    :    
    ///版本号      :    1.0
    ///最后修改时间:    2012-8-27 7:24:34
    /// </summary>
    [OrmPropertyAttribute(TableName = "vw_EducationInfo", PrimaryKey = "Id", PrimaryKeyType = "IDENTITY", ParameterType = "int")]
    public class Vw_EducationInfo
    {
        #region 构造函数
        public Vw_EducationInfo() { }

        public Vw_EducationInfo(int id, int UserId, string UserName, byte UserType, DateTime BeginTime, DateTime EndTime, string Type, string Country, string School, string Demo)
        {
            this._id = id;
            this._UserId = UserId;
            this._UserName = UserName;
            this._UserType = UserType;
            this._BeginTime = BeginTime;
            this._EndTime = EndTime;
            this._Type = Type;
            this._Country = Country;
            this._School = School;
            this._Demo = Demo;

        }
        #endregion

        #region 成员
        private int _id;
        private int _UserId;
        private string _UserName;
        private byte _UserType;
        private DateTime _BeginTime;
        private DateTime _EndTime;
        private string _Type;
        private string _Country;
        private string _School;
        private string _Demo;
        #endregion

        #region 属性
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int", ParameterLength = 4, IsNull = "0")]
        public virtual int Id
        {
            get { return _id; }
            set { _id = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int", ParameterLength = 4, IsNull = "1")]
        public virtual int UserId
        {
            get { return _UserId; }
            set { _UserId = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "nvarchar", ParameterLength = 40, IsNull = "1")]
        public virtual string UserName
        {
            get { return _UserName; }
            set { _UserName = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "tinyint", ParameterLength = 1, IsNull = "1")]
        public virtual byte UserType
        {
            get { return _UserType; }
            set { _UserType = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "datetime", ParameterLength = 16, IsNull = "1")]
        public virtual DateTime BeginTime
        {
            get { return _BeginTime; }
            set { _BeginTime = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "datetime", ParameterLength = 16, IsNull = "1")]
        public virtual DateTime EndTime
        {
            get { return _EndTime; }
            set { _EndTime = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "nvarchar", ParameterLength = 60, IsNull = "1")]
        public virtual string Type
        {
            get { return _Type; }
            set { _Type = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "nvarchar", ParameterLength = 200, IsNull = "1")]
        public virtual string Country
        {
            get { return _Country; }
            set { _Country = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "nvarchar", ParameterLength = 200, IsNull = "1")]
        public virtual string School
        {
            get { return _School; }
            set { _School = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "nvarchar", ParameterLength = 400, IsNull = "1")]
        public virtual string Demo
        {
            get { return _Demo; }
            set { _Demo = value; }
        }
        #endregion
    }
}